﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.IO;

namespace Billder
{
    public partial class TicketList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<OColumn> columns = new List<OColumn>();
            columns.Add(new OColumn("PartNumber") { label = "Numero de parte" });
            columns.Add(new OColumn("DeleteLink") { label = "&nbsp;" });
            
           // columns.Add(new OColumn("PhotoLink") { label = "Foto" });
            OTable t = new OTable("sp_cat_GetPartMaster @FKStatus=2", columns);
            Response.Clear();
            StringBuilder sb = new StringBuilder();
            StringWriter tw = new StringWriter(sb);
            HtmlTextWriter hw = new HtmlTextWriter(tw);
            t.getTable("PartNumber ASC","", "PKPartMaster").RenderControl(hw);
            Response.Write(sb.ToString());
            Response.End();
        }
    }
}